<!--index used-->
<div class="vehicles index">
  <section class="search">
    <h2><?php echo __('Listado de Camiones'); ?></h2>
    <?php echo $this->Form->input('Buscar:', array('class' => 'searchVehicle', 'id' => 'searchVehicle')) ?>
  </section>
  <div id="vehicles_list">
    <?php echo $this->element('vehicles/table') ?>
  </div>
</div>

<script>
  $(document).ready(function(){
        
    //       Ajax Search keys press
    $('#searchVehicle').keyup(function() {
      var name = $("#searchVehicle").val();
      $("#vehicles_list").load('<? echo $this->Html->url('search') ?>',{name:name});
    });
        
  });
</script>